Clean up legacy bytecode loading
authorMattias Engdegård <mattiase@acm.org>
Sun, 26 May 2024 09:13:50 +0000 (11:13 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 26 May 2024 11:04:51 +0000 (13:04 +0200)
commit236034a24d0e93e1796224e2ff4a14819fcfd559
tree17cbd8f643e1c03b61fdb5725600b04873a3b27b
parentcfd654c418658adacd6ab3717dc1b8cc95d99d44
Clean up legacy bytecode loading

Complete some unfinished work from the elimination of lazy bytecode
loading in 9bcc9690a8: remove code which became unreachable by that
reform.  This simplifies some of the lower-level parts of the reader
which helps performance somewhat.

* src/doc.c (read_bytecode_pointer, read_bytecode_char)
(read_doc_string): Remove.
(get_doc_string): Remove last argument, all callers adapted.  Simplify.
* src/lread.c (readbyte_for_lambda, readbyte_from_string)
(readbyte_for_lambda, readbyte_from_string): Remove.
(readchar, unreadchar): Remove unused code paths for Qlambda and cons
arguments.
(bytecode_from_rev_list): Remove last use of a quirky code path,
decoding force-loaded lazy bytecode explicitly.
src/doc.c
src/lisp.h
src/lread.c